package com.exmaple.cdc.annotation;

import com.exmaple.cdc.constant.CDCConstant;
import org.springframework.stereotype.Service;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Service
@Documented
public @interface CDCListener {

    //监听表名
    String tableName() default CDCConstant.TABLE_NAME;

    //多个节点消费
    boolean multiple() default true;
}
